import request from '@/config/axios'

//创建标准
export const dataStandardsCreate = async (data) => {
  return await request.post({
    url: '/amp/data-standard/create',
    data
  })
}
//删除标准
export const dataStandardsDelete = async (id) => {
  return await request.delete({
    url: '/amp/data-standard/delete?id=' + id
  })
}
//获得标准
export const dataStandardsGet = async (id) => {
  return await request.get({
    url: '/amp/data-standard/get?id=' + id
  })
}
//获得标准分页
export const dataStandardsPage = async (params) => {
  return await request.getOriginal({
    url: '/amp/data-standard/page',
    params
  })
}
//标准修改
export const dataStandardsUpdate = async (data) => {
  return await request.put({
    url: '/amp/data-standard/update',
    data
  })
}
//标准克隆
export const dataStandardsClone = async (id) => {
  return await request.post({
    url: '/amp/data-standard/clone?id=' + id
  })
}
//标准导出
export const dataStandardsExport = async (params) => {
  return await request.download({
    url: '/amp/data-standard/export-excel',
    params
  })
}
//标准导出
export const dataStandardsDeleteAll = async (data) => {
  return await request.delete({
    url: '/amp/data-standard/deleteAll',
    data
  })
}
